package sv.gob.mh.dgii.model;

// Generated Dec 12, 2007 3:08:52 PM by Hibernate Tools 3.2.0.CR1

import java.util.Date;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TbFecLimPres generated by hbm2java
 */
@Entity
@Table(name = "TB_FEC_LIM_PRES", schema = "CATALOGOS")
public class TbFecLimPres implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private TbFecLimPresId id;
	private TbObligacion tbObligacion;
	private String cusuario;
	private Date flimPres;
	private Date fhingreso;
	private Date fvencPlazo;

	public TbFecLimPres() {
	}

	public TbFecLimPres(TbFecLimPresId id, TbObligacion tbObligacion,
			String cusuario, Date flimPres, Date fhingreso) {
		this.id = id;
		this.tbObligacion = tbObligacion;
		this.cusuario = cusuario;
		this.flimPres = flimPres;
		this.fhingreso = fhingreso;
	}

	public TbFecLimPres(TbFecLimPresId id, TbObligacion tbObligacion,
			String cusuario, Date flimPres, Date fhingreso, Date fvencPlazo) {
		this.id = id;
		this.tbObligacion = tbObligacion;
		this.cusuario = cusuario;
		this.flimPres = flimPres;
		this.fhingreso = fhingreso;
		this.fvencPlazo = fvencPlazo;
	}

	@EmbeddedId
	@AttributeOverrides( {
			@AttributeOverride(name = "cobligacion", column = @Column(name = "C_OBLIGACION", nullable = false, length = 2)),
			@AttributeOverride(name = "fppresentacion", column = @Column(name = "FP_PRESENTACION", nullable = false, length = 7)) })
	public TbFecLimPresId getId() {
		return this.id;
	}

	public void setId(TbFecLimPresId id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "C_OBLIGACION", nullable = false, insertable = false, updatable = false)
	public TbObligacion getTbObligacion() {
		return this.tbObligacion;
	}

	public void setTbObligacion(TbObligacion tbObligacion) {
		this.tbObligacion = tbObligacion;
	}

	@Column(name = "C_USUARIO", nullable = false, length = 30)
	public String getCusuario() {
		return this.cusuario;
	}

	public void setCusuario(String cusuario) {
		this.cusuario = cusuario;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "F_LIM_PRES", nullable = false, length = 7)
	public Date getFlimPres() {
		return this.flimPres;
	}

	public void setFlimPres(Date flimPres) {
		this.flimPres = flimPres;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "FH_INGRESO", nullable = false, length = 7)
	public Date getFhingreso() {
		return this.fhingreso;
	}

	public void setFhingreso(Date fhingreso) {
		this.fhingreso = fhingreso;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "F_VENC_PLAZO", length = 7)
	public Date getFvencPlazo() {
		return this.fvencPlazo;
	}

	public void setFvencPlazo(Date fvencPlazo) {
		this.fvencPlazo = fvencPlazo;
	}

}
